<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>大事件-列表页</title>
    <link rel="stylesheet" type="text/css" href="css/reset.css" />
    <link rel="stylesheet" href="css/font-awesome.min.css" />
    <link rel="stylesheet" type="text/css" href="css/jquery.pagination.css" />
    <link rel="stylesheet" type="text/css" href="css/main.css" />
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
    <link rel="stylesheet" href="./admin/libs/layui/css/layui.css">
    <script src="./admin/libs/layui/layui.all.js"></script>
  </head>

  <body>
    <div class="header">
      <a href="#" class="logo fl"><img src="images/logo.png" alt="logo" /></a>
      <div class="search_form fl">
        <input type="text" class="search_txt" placeholder="黑洞照片" />
        <button class="search_btn"><i class="fa fa-search"></i></button>
      </div>
      <div class="link_info fr">
        <a href="#"><i class="fa fa-angle-right"></i>&nbsp;&nbsp;网站地图</a
        ><br />
        <a href="#"><i class="fa fa-angle-right"></i>&nbsp;&nbsp;招聘信息</a>
      </div>
    </div>

    <div class="menu_con">
      <div class="menu">
        <div class="menu_collapse fl">
          <a href="javascript:;" class="level_one"
            ><i class="fa fa-list-ul"></i>全部分类</a
          >
          <ul class="level_two">
            <!-- <li class="up"></li>
            <li><a href="#">最 新</a></li>
            <li><a href="#">科 技</a></li>
            <li><a href="#">股 市</a></li>
            <li><a href="#">商 品</a></li>
            <li><a href="#">外 汇</a></li>
            <li><a href="#">公 司</a></li> -->
          </ul>
        </div>
        <ul class="left_menu fl">
          <!-- <li><a href="#">最 新</a></li>
          <li><a href="#">科 技</a></li>
          <li><a href="#">股 市</a></li>
          <li><a href="#">商 品</a></li>
          <li><a href="#">外 汇</a></li>
          <li><a href="#">公 司</a></li> -->
        </ul>
        <ul class="right_menu fr">
          <li><a href="#">科技专题</a></li>
          <li><a href="#">财经专题</a></li>
        </ul>
      </div>
    </div>

    <div class="main_con clearfix">
      <div class="left_con setfr">
        <div class="list_title">
          <h3>科 技</h3>
        </div>
        <!-- 文章阅读部分 -->
        <div class="common_news_lists"></div>

        <div id="test1" class="page" style="text-align: center;"></div>
      </div>
      <div class="right_con setfl">
        <div class="common_wrap">
          <h3><i class="fa fa-bar-chart"></i> 一周热门排行</h3>

          <!-- 文章热门排行 -->
          <ul class="content_list content_lists"></ul>
        </div>
        <div class="common_wrap">
          <h3><i class="fa fa-commenting-o"></i> 最新评论</h3>

          <!-- 最新评论 -->
          <ul class="content_list comment_list"></ul>
        </div>

        <!-- 焦点关注 -->
        <div class="common_wrap">
          <h3><i class="fa fa-bullseye"></i> 焦点关注</h3>
          <ul class="content_list guanzhu_list"></ul>
        </div>
      </div>
    </div>

    <div class="footer clearfix">
      <div class="foot_link">
        <a href="#">关于我们</a>
        <span>|</span>
        <a href="#">联系我们</a>
        <span>|</span>
        <a href="#">招聘人才</a>
        <span>|</span>
        <a href="#">友情链接</a>
      </div>
      <p>CopyRight © 2019 深圳大事件信息技术股份有限公司 All Rights Reserved</p>
      <p>电话：0755-****888 粤ICP备*******8号</p>
    </div>

    <!-- // 全部分类下拉列表 -->
<script type="text/html" id="drop-down">
    <li class="up"></li>
    <li><a href="#">最 新</a></li>
    {{each data item}}
    <li><a href="#">{{item.name}}</a></li>
    {{/each}}
</script>






<!-- 导航栏部分 -->
    <script type="text/html" id="navigation">
      <li><a href="#">最 新</a></li>
      {{each data item}}
      <li><a href="#">{{item.name}}</a></li>
      {{/each}}
    </script>

    <!-- 文章阅读部分 -->
    <script type="text/html" id="read">
      {{each data item}}
      <div class="common_news_list">
        <a href="#" class="list_pic"><img src="{{item.cover}}" alt="" /></a>
        <h4><a href="article.html?id={{item.id}}">{{item.title}} </a></h4>
        <p>{{item.intro}}</p>
        <div class="new_info">
          <span
            >标签：财经&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<i
              class="fa fa-eye"
            ></i
            >&nbsp;阅读( {{item.read}} )&nbsp;&nbsp;&nbsp;<i
              class="fa fa-commenting"
            ></i
            >&nbsp;评论( {{item.comments}} )</span
          >
          <b>发布于 {{item.date}}</b>
        </div>
      </div>
      {{/each}}
    </script>

    <!-- 文章热门排行 -->
    <script type="text/html" id="article">
      {{each data item}}
      <!-- 循环里套判定 -->
      {{if $index == 0}}
      <li>
        <span class="first">{{$index+1}}</span><a href="#">{{item.title}}</a>
      </li>
      {{else if $index==1}}
      <li>
        <span class="second">{{$index+1}}</span><a href="#">{{item.title}}</a>
      </li>
      {{else if $index==2}}
      <li>
        <span class="third">{{$index+1}}</span><a href="#">{{item.title}}</a>
      </li>
      {{else}}
      <li><span>{{$index+1}} </span><a href="#">{{item.title}}</a></li>

      {{/if}} {{/each}}
    </script>

    <!-- 最新评论 -->

    <script type="text/html" id="observer">
      {{each data item}}
      <li>
        <!-- substr() 方法可在字符串中抽取从 start 下标开始的指定数目的字符。 -->
        <span>{{item.author.substr(0,1)}}</span>
        <b><em>{{item.author}}</em> {{item.date}}说:</b>
        <strong>{{item.intro}}</strong>
      </li>
      {{/each}}
    </script>
    <!-- 焦点关注 -->
    <script type="text/html" id="focus">
      {{each data item}}
      <li><a href="#">{{item.intro}}</a></li>
      {{/each}}
    </script>

    <script src="./admin/js/utils.js"></script>
    <!-- 导包template -->
    <script src="./js/template-web.js"></script>
    <script src="./js/list.js"></script>
  </body>
</html>
